import { DocItemType } from '../types';

/**
 * 判断是否为标题
 * @param type
 * @returns
 */
export const isHeading = (type: DocItemType) =>
  [DocItemType.H1, DocItemType.H2, DocItemType.H3, DocItemType.H4, DocItemType.H5, DocItemType.H6].includes(type);
